import 'package:meta/meta.dart';

FoodItemList foodItemList = FoodItemList(foodItems: [
  FoodItem(
    id: 1,
    title:"Beach BBQ Burger",
    hotel: "Las Vegas Hotel",
    price: 14.49,
    imgUrl: "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=28334915,1952505289&fm=26&gp=0.jpg"
  ),
  FoodItem(
      id: 2,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "https://timgsa.baidu.com/timg?image&quality=80&size=b10000_10000&sec=1561561677&di=a35224ab24b9eef6619fdc8b6996dd9c&src=http://p0.meituan.net/deal/b33681b6ce9e8b4876bc42b8d13d3002291792.jpg"
  ),
  FoodItem(
      id: 3,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1561571781620&di=cc4797e0b29c9c2fa0c1f8a57a0d8d57&imgtype=0&src=http%3A%2F%2Fp0.meituan.net%2Fwmproduct%2Fdf0c52f99e3501f8be4e0521cb0f48cb80910.jpg"
  ),
  FoodItem(
      id: 4,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic13.nipic.com/20110409/7119492_114440620000_2.jpg"
  ),
  FoodItem(
      id: 5,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://i2.chuimg.com/6988ca4a872511e6a9a10242ac110002_490w_367h.jpg?imageView2/2/w/660/interlace/1/q/90"
  ),
  FoodItem(
      id: 6,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic25.nipic.com/20121112/9252150_150552938000_2.jpg"
  ),
  FoodItem(
      id: 7,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic41.nipic.com/20140508/18609517_112216473140_2.jpg"
  ),
  FoodItem(
      id: 8,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic29.nipic.com/20130517/9252150_140653449378_2.jpg"
  ),
  FoodItem(
      id: 9,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic68.nipic.com/file/20150601/8164280_104301508000_2.jpg"
  ),
  FoodItem(
      id: 10,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic36.nipic.com/20131126/8821914_071759099000_2.jpg"
  ),
  FoodItem(
      id: 11,
      title:"Beach BBQ Burger",
      hotel: "Las Vegas Hotel",
      price: 14.49,
      imgUrl: "http://pic17.nipic.com/20111105/8323874_102621593000_2.jpg"
  ),
]);

class FoodItemList{
  List<FoodItem> foodItems;

  FoodItemList({@required this.foodItems});
}

class FoodItem{
  int id;
  String title;
  String hotel;
  double price;
  String imgUrl;
  int quantity;

  FoodItem({
    @required this.title,
    @required this.hotel,
    @required this.id,
    @required this.imgUrl,
    @required this.price,
     this.quantity=0
});

  void incrementQuantity(){
    this.quantity = this.quantity +1;
  }

  void decrementQuantity(){
    this.quantity = this.quantity-1;
  }
}